Recently relive a few design patterns, see everyone's blog is Java code +uml view, UML Express the overall framework, and then show the specific code, entire areas, at a glance. So we also studied how the Java code and UML model a
Ncodegenerate is a razor syntax based on the. NET platform.CodeGenerate a tool.
Main features:
1. Use razor and C.
2. syntax highlighting prompt, which is automatically folded.
2. Enter a smart prompt. The @ model syntax smart prompt is supported.
3. The parameter model is directly customized using the C # class.
4. Supports multiple databases (currently MySQL, SQL Server, and Oracle), and supports expansion of write plug-ins.
5. Support output to files.
6. Complete database stru
Four types of relationships and code implementation of class diagrams in UML, and four types of uml
In the uml diagram, the most complex relationships are generalization, implementation, dependency, and association, if you understand these relationships, you will become familiar with understanding the
together in a war, and the soldiers have no life if the army is gone, they can be understood as a combination.
UML example:
Figure 3-1 Association, aggregation, and combination
C sample code:
[CPP]
View plaincopyprint?
// A Association/aggregation/combination of B
Struct {
Struct B * B;
Void (* Create) (B * B); // method 1
};
Struct {
Struct B * B;
Void (* SETB) (B * B); // method 2, single
Modelgoon is a good Eclipse plug-in for UML generation. It supports reverse Java generation and image export.
: Http://download.csdn.net/detail/laizhenhai88/5298521
There are three types after installation, which can be found through new-> file-> Other
The class does not explain much, and the inheritance relationship is clear at a glance, as shown in the fig
Ncodegenerate asCodeGenerate tool. You can edit templates, check syntax, and execute template generation code. If there is no logical error in the template, there is no problem in the whole process. But who can ensure there is no error in the written template? Can you? I cannot.ProgramDevelopers know that code debugging takes much longer than
)] is the selector that defines calling the database table in the attribute settings. Lines 30-36 in the same Code define the attributes of a database.
Enter the following content in the Code:
1 @model DynamicCodeGenerate.myModel 2 @{ 3 foreach(var item in Model.DataBase.Tables){ 4 @:TableName:@item.Name 5 foreach(var itemcolumn in item.Columns) 6 { 7 @:Column:@itemcolumn.
. DBSchema document, which is connected in the following document.
Attached:
NCodeGenerate.zip
Document: Document
NCodeGenerate series of articles:I. What is NCodeGenerate? Ii. Code Generation Tool-NCodeGenerate tutorial (1) traverse all tables in the database III. Code Generation Tool-NCodeGenerate tutorial (2)
following code
1 @AssemblyFile .\ConvertHelper1.cs2
Okay, the climax is coming. Check the Code in line 2: Use the @ AssemblyFile command to introduce the CS file generated in one step. The following is the relative path of the file. Note that only relative paths are allowed, and absolute paths are not allowed.
Okay, now let's look at the 5th lines of code. Wh
from:http://blog.itpub.net/14780914/viewspace-588975/
This article is intended for those software architects, designers and developers who want to use IBM? Rational? Software Architect from Java? Source code to reverse engineer the generation of UML classes and sequence diagrams. Reverse engineering is often used to derive lost design documents from exist
I,UML diagram and code representation of class-to-class relationships
The relationship between classes plays an important role in understanding object-oriented objects. I was often asked this question during interviews. Here I will introduce it.There is a relationship between the class and the class:(1) Generalization)(2) Association)(3) Dependency)(4) Aggregation)
UML
Online about from C + + code to UML class diagram generation process of things, found a usable, and now turn down, in case of a rainy days.Turn to slightly adjust the next content, only care about the use.Original source http://siulyn.blog.163.com/blog/static/6245583620087252539344Rational Rose 2003 Reverse engineering generating
Python is a language that supports object-oriented programming, and in large software projects we often use object-oriented features to organize our code, is there a tool that can help us extract UML diagrams from existing code? The answer is yes. Below, we describe each of these tools individually.
Pyreverseis a set of Python
Today is looking at a simulator of the source code, a package has multiple classes, a class has a number of properties and methods, if in order to look down, not only can not be a general understanding of the framework of the simulator, and will only see the more chaotic, so, Think of any tools that can translate these classes and their dependencies into UML diagrams so that you can see them at a glance. Im
1. Inheritance relationship (generalization relationship)
Description: The inheritance relationship is a subclass (derived class) that inherits the parent class (the base class), or the child interface inherits the parent interface's relationship. The subclass object "is a" parent object, such as a bird is an animal.
"UML Diagram":
Diagram: Animal is the parent class, Bird class, Fish class, dog class inherit the animal class, they not only inher
CodeSmith is one of the most widely used tools in code generation and has rich template resources and users. Many of my friends used CodeSmith and there are many ready-made templates. NCodeGenerate provides a template Conversion Tool from CodeSmith to NCodeGenerate. It makes it easier for users to switch from CodeSmith to NCodeGenerate. Next we will introduce it.
Open the tool menu> CodeSmith Conversion
Design Pattern-Comparison Between UML relation and code
When learning UML, we should focus on the nine types of diagrams and six relations of UML and Their Derived works. After completing the charging system of the IDC, I learned the theoretical knowledge of UML and practice
all. beyond this, the tool has some promise. the only other complaint I really have is the install experience. there are some odd dependencies that aren't encoded in the installer, so you have to go hunt them down and install them separately. I hate this. given the power of WPF, I wocould 've preferred to use the capabilities built. net.
The next thing I thought about was my favorite Modeling Environment, sparx systems enterprise impact ect. the problem here is the automatic
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.